﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UIT.Controls.Template;

#if !SILVERLIGHT
namespace UIT.WPF.Renderers
#else
namespace UIT.Silverlight.Renderers
#endif
{

    public class DataTemplateInstanceRenderer : ControlRenderer<Controls.Template.DataTemplateInstance>,
#if !SILVERLIGHT
        IWpfRenderer 
#else
		ISlRenderer
#endif

    {
        public override void Render(Controls.Template.DataTemplateInstance control)
        {
            Result = Manager.Render(control.Child);
        }

        public System.Windows.UIElement Result
        {
            get;
            private set;
        }
    }
}
